package com.scheduler.service;

import com.scheduler.dao.ResultDao;
import com.scheduler.pojo.AddMessage;
import com.scheduler.pojo.Result;
import com.scheduler.pojo.ResultMessage;
import com.scheduler.pojo.TypeNum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResultServiceImpl implements ResultService{
    @Autowired
    private ResultDao resultDao;

    @Override
    public List<Result> getResult(String type) {
        return resultDao.getResult(type);
    }

    @Override
    public List<String> getType() {
        return resultDao.getType();
    }

    @Override
    public void addResult(String str) {
        resultDao.addResult(str);
    }

    @Override
    public List<AddMessage> getAdd(String str) {
        return resultDao.getAdd(str);
    }

    @Override
    public List<ResultMessage> getRmess(String str) {
        return resultDao.getRmess(str);
    }

    @Override
    public void addRmess(ResultMessage rm) {
        resultDao.addRmess(rm);
    }

    @Override
    public void addRmessflag(ResultMessage rm) {
        resultDao.addRmessflag(rm);
    }

    @Override
    public Integer QueryCount(String str) {
        return resultDao.QueryCount(str);
    }

    @Override
    public Integer QueryCountTotal() {
        return resultDao.QueryCountTotal();
    }

    @Override
    public Integer QueryCountTotals() {
        return resultDao.QueryCountTotals();
    }

    @Override
    public List<TypeNum> DistinctTypeNum() {
        return resultDao.DistinctTypeNum();
    }
}
